package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.Reservation;
import com.zzyl.vo.CountByTimeVo;
import com.zzyl.vo.ReservationVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CustomerReservationMapper {
    void addReservation(Reservation reservation);

    Page<ReservationVo> getByPage(Integer status);

    void cancelReservation(Reservation vo);

    Integer getCancelledReservationCount(Long userId);

    List<CountByTimeVo> getCountByTime(String time);

    List<Integer> getReservationId();

    void updateReservation(List<Integer> list);
}
